import { App } from 'vue'

import LText from '@/components/LText'
import LImage from '@/components/LImage'

const components = [LText, LImage]

const install = (app: App) => {
  components.forEach((component) => {
    if (!component.name) {
      return
    }
    app.component(component.name, component)
  })
}

export { LText, LImage, install }

export default {
  install,
}
